package com.ruoyi.pushSetting.dao.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.ruoyi.pushSetting.dao.ICircleHsPushSettingDao;
import com.ruoyi.pushSetting.domain.CircleHsPushSetting;
import com.ruoyi.pushSetting.mapper.CircleHsPushSettingMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * 圈子热搜推送设置Dao业务层处理
 *
 * @author 区嘉盛
 * @date 2025-06-23
 */
@Repository
public class CircleHsPushSettingDaoImpl extends ServiceImpl<CircleHsPushSettingMapper, CircleHsPushSetting> implements ICircleHsPushSettingDao {

    @Autowired
    private CircleHsPushSettingMapper circleHsPushSettingMapper;

    /**
     * 查询圈子热搜推送设置列表
     *
     * @param circleHsPushSetting 圈子热搜推送设置
     * @return 圈子热搜推送设置集合
     */
    @Override
    public List<CircleHsPushSetting> selectCircleHsPushSettingList(CircleHsPushSetting circleHsPushSetting) {
        return circleHsPushSettingMapper.selectCircleHsPushSettingList(circleHsPushSetting);
    }

    /**
     * 新增圈子热搜推送设置
     *
     * @param circleHsPushSetting 圈子热搜推送设置
     * @return 结果
     */
    @Override
    public int insertCircleHsPushSetting(CircleHsPushSetting circleHsPushSetting) {
        return circleHsPushSettingMapper.insertCircleHsPushSetting(circleHsPushSetting);
    }
}